package mv.main;

import mv.crawler.CalendarCrawler;
import mv.crawler.FeedCrawler;
import mv.crawler.NotebookCrawler;
import mv.io.FileIO;
import mv.io.BluetoothIO;
import mv.wap.Page;

import java.util.List;

/**
 * Class description...
 *
 * @author Gantz
 */
public class Crawler extends MObject {
  public static void main(String[] args) throws Exception {
    List<Page> pages = new CalendarCrawler().crawl();
    pages.addAll(new FeedCrawler().crawl());
    pages.addAll(new NotebookCrawler().crawl());
    FileIO.getInstance().save(pages);
    BluetoothIO.main(new String[0]);
  }
}
